<div>
	<form method="post" id="form_${action_id}" name="form_${action_id}" enctype="multipart/form-data">
	<input type="hidden" id="entity.state" name="entity.state" value="${entity.state}"> 
	<input type="hidden" id="entity.id" name="entity.id" value="${entity.id}"> 
	<input type="hidden" id="entity.specifications.id" name="entity.specifications.id" value="${entity.specifications.id?default('')}">
    <table class="form-table" cellpadding=3>
    	<tr>
            <td>${action.getDatagridTitle('value')}:</td>
            <td><input id="entity.value" name="entity.value" type="text" style="width: 300px;"  value="${entity.value?default('')}" class="easyui-validatebox" data-options="required:true,validType:'length[1,64]'"   /></td>
        </tr>
        <#if image>
        <tr>	
			<td>${action.getDatagridTitle('image')}：</td>
			<input type="hidden" name="entity.image" value="${entity.image?default('')}" id="entity_icon_value_${action_id}" />
			<input type="file" id="entity_icon_${action_id}" name="icon" onchange="$('#entity_icon_${action_id}_filename').empty();$('#entity_icon_${action_id}_filename').text(this.value);" style="display: none" />
			<td colspan="3">
				<a href="javascript:;;" onclick="$('#entity_icon_${action_id}').click();" class="easyui-linkbutton" data-options="iconCls:'icon-save'">选择图片</a>
				<a href="javascript:;;" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-tip'" id="entity_icon_preview_${action_id}" >预览</a>
				<span id="entity_icon_${action_id}_filename">
					<!--<img style="width:64px;height:64px;" src="${downloadUrl?default('')}${entity.icon?default('')}?_v=${timeMillis}" />-->
				</span>
        		<script type="text/javascript">
       			$(function(){
       				$('#entity_icon_preview_${action_id}').preview({html:'<div style="border:#c0c0c0 1px solid;background-color: white;"><img src="${downloadUrl}${entity.image?default('')}" /></div>'});
       			})
        		</script>
			</td>
		</tr>
		</#if>
    </table>
	</form>
</div>
